home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / Graphic Elements 3 / GEMisc / GridElement.h < prev    next >
Text File  |  1994-03-25  |  899b  |  40 lines

  1. /*
  2.     GridElement.h
  3.     
  4.     A Graphic Element used to break up large background pictures for faster updating. 
  5.     
  6.     Makes a basic PICT element, then clones it as necessary to convert it to a
  7.     set of tiles with width elemWidth and height elemHeight.
  8.     
  9.     The elements created are assigned sequential IDs beginning at startID. 
  10.     NewGridPICT returns the first element created.
  11.     
  12.     For convenience, the elements are linked through their masterGrafEl/slaveGrafEl
  13.     fields. The element with ID startID is the head of the list.
  14.     
  15.     Copyright 1994 by Al Evans. All rights reserved.
  16.     
  17.     3/1/94
  18.     
  19. */
  20.  
  21. #ifndef GRIDELEMENT
  22. #define GRIDELEMENT
  23.  
  24. #include "GraphElements.h"
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. GrafElPtr NewGridPICT(GEWorldPtr world, OSType startID, short plane, short resNum,
  31.                             short mode, short xPos, short yPos, short elemWidth,
  32.                             short elemHeight);
  33.                             
  34.  
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38.  
  39.  
  40. #endif